package cn.zhf.shop.entity.lesson;

import lombok.Data;

import java.util.List;
@Data
public class LessonOverview {
    public LessonOverview(Integer lessonId, String lessonName, List<LessonTypeOverview> lessonType, Double lessonPrice, String lessonImg, Integer buyCount) {
        this.lessonId = lessonId;
        this.lessonName = lessonName;
        this.lessonType = lessonType;
        this.lessonPrice = lessonPrice;
        this.lessonImg = lessonImg;
        this.buyCount = buyCount;
    }

    /**
     * 课程编号
     */
    private Integer lessonId;

    /**
     * 课程名称
     */
    private String lessonName;

    /**
     * 课程类型
     */
    private List<LessonTypeOverview> lessonType;

    /**
     * 费用
     */
    private Double lessonPrice;

    /**
     * 课程图片
     */
    private String lessonImg;

    /**
     * 购买人数
     */
    private Integer buyCount;

    @Override
    public String toString() {
        return "LessonOverview{" +
                "lessonId=" + lessonId +
                ", lessonName='" + lessonName + '\'' +
                ", lessonType=" + lessonType +
                ", lessonPrice=" + lessonPrice +
                ", lessonImg='" + lessonImg + '\'' +
                ", buyCount=" + buyCount +
                '}';
    }
}
